<?php 

namespace app\common\validate\single;

use think\Validate;

class SysSingleDispatchConfig extends Validate 
{ 
    protected $rule = [
        'width' => 'require',
        'height' => 'require',
    ];

    protected $message = [
        'width.require' => '请输入页面宽度',
        'height.require' => '请输入页面高度',
    ];

    protected $scene = [
        'edit' => ['width','height','admin_name','remark','id'],
        'add' => ['width','height','admin_name','remark'],
    ];

} 
